package lesson3.slides.xml.sax;

import java.io.FileInputStream;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.InputSource;

public class SaxParserExample {

    public static void main(String[] args)
            throws Throwable {

        FileInputStream fis =
                new FileInputStream("something.xml");
        InputSource xis = new InputSource(fis);

        SAXParser parser = SAXParserFactory.newInstance()
                .newSAXParser();

        parser.parse(xis, new MySaxHandler());
    }
}
